package psn.kiko.constant;

import psn.kiko.pojo.vo.LabelValue;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
 * 性别常量
 */
public class GenderConstant{
	private static final List<LabelValue> gendersWithLabel = new ArrayList<>(3);
	private static final List<Short> allGenders = new ArrayList<>(3);
	/**
	 * 0-未设置性别
	 */
	public static final short UNSET = 0;
	/**
	 * 1-男性性
	 */
	public static final short MALE = 1;
	/**
	 * 2-女性
	 */
	public static final short FEMALE = 2;
	
	static  {
		allGenders.add(UNSET);
		allGenders.add(MALE);
		allGenders.add(FEMALE);
		gendersWithLabel.add(new LabelValue("不设置", UNSET));
		gendersWithLabel.add(new LabelValue("男", MALE));
		gendersWithLabel.add(new LabelValue("女", FEMALE));
	}
	
	public static List<Short> getAllGenders(){
		return allGenders;
	}
	
	public static List<LabelValue> getGendersWithLabel(){
		return gendersWithLabel;
	}
	
	private GenderConstant(){}
}
